﻿@using Kevin.Shop.Business.Service.Entity.Helper
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="cleartype" content="on">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>@RenderSection("title", required: false) 蓉记鲜鲜鲜</title>
    <meta name="description" content="蓉记鲜鲜鲜，健康生活品质专家">
    <meta name="keywords" content="生鲜,美食,美酒,食材,菜谱,健康,蓉记,农产品,农产品电商,水果,蔬菜,虾,鱼,蟹,大闸蟹,海鲜,牛排,牛肉,肉,猪肉,特产,当季美食">
    <meta name="application-name" content="蓉记鲜鲜鲜">
    <meta name="msapplication-TileColor" content="#005A32">
    <meta name="msapplication-TileImage" content="~/Themes/RongJi/Style/base/imgs/apple-touch-icon-114x114.png">
    <link href="~/Themes/RongJi/Style/base/imgs/favicon.ico" rel="shortcut icon" type="image/x-icon">
    <link href="~/Themes/RongJi/Style/base/imgs/apple-touch-icon-72x72.png" rel="apple-touch-icon">
    <link href="~/Themes/RongJi/Style/base/imgs/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72">
    <link href="~/Themes/RongJi/Style/base/imgs/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114">
    <script>
        var sUserAgent = navigator.userAgent.toLowerCase();
        var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
        var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
        var bIsMidp = sUserAgent.match(/midp/i) == "midp";
        var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
        var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
        var bIsAndroid = sUserAgent.match(/android/i) == "android";
        var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
        var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
        if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
            if (location.href.indexOf("test.rongji365") >= 0 || location.href.indexOf("www.rongji365") >= 0) {
                location.href = location.href.replace("test.rongji365", "m.rongji365").replace("www.rongji365", "m.rongji365");
            }
        }
    </script>
    <!--[if lt IE 9]>
    <script src="~/Themes/RongJi/Style/plugins/html5shiv.js"></script>
    <![endif]-->
    <link href="~/Themes/RongJi/Style/base/css/global.css" rel="stylesheet">
    <link href="~/Themes/RongJi/Style/plugins/font-awesome-4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="~/Themes/RongJi/Style/plugins/fancybox-2.1.5/jquery.fancybox.css" rel="stylesheet">
    <link href="~/Themes/RongJi/Style/plugins/sweet-alert/sweet-alert.css" rel="stylesheet">
    @*
        <link href="~/Themes/RongJi/Style/plugins/bootstrap/twitter-bootstrap-v2/docs/assets/css/bootstrap.css" rel="stylesheet">*@
    @RenderSection("header", required: false)
</head>
<body>
    <!-- Header Start -->
    <header id="pageHeader">
        <div id="topbar">
            <div class="wrapper-1200">
                <div class="welcome-msg">
                    您好 欢迎您 -
                    @if (WebClientContext.Current.IsAuthenticated)
                    {
                        <a href="/MyAccount/Profile"><i class="fa fa-user"></i> @(string.IsNullOrEmpty(WebClientContext.Current.CurrentUser.RealName) ? WebClientContext.Current.UserName : WebClientContext.Current.CurrentUser.RealName)</a>
                        <a href="~/MyAccount/Profile">我的蓉记</a>
                        <a href="~/MyAccount/OrderList?orderType=0">我的订单</a>
                        <a href="/Customer/Logout"><i class="fa fa-power-off"></i> 退出</a>
                    }
                    else
                    {
                        <a href="~/Customer/Login">登录</a> <a href="/Customer/Register">免费注册</a> @*<span>返修仓库</span> 【<a class="fancybox.ajax" href="#" id="changeWarehouses">切换地址</a>】*@
                    }
                </div>
                <div class="miscs">
                    <span id="nongLi"></span>
                    <a href="~/Content/ContentInfo"><i class="fa fa-question-circle"></i>帮助中心</a>
                </div>
            </div>
        </div>
        <div class="wrapper-1200">
            <div id="topDAdv">
                @{
                    //只有在首页显示大图
                    var list = new string[] { "/", "/Home", "/Home/Index" };

                    bool isTopDAdvShow = list.Any(l => l.ToUpper() == Request.Url.LocalPath.ToUpper());
                }
                <div class="index_topbanner" id="topCurtain" style="display: block;">
                    <a @Html.Raw(isTopDAdvShow ? "" : "style='display: none;'") href="/Product/ProductDetail?prd=10130002002" target="_blank" class="big_topbanner">
                        <img alt="" src="http://dev.rongji365.com/Storage/Banner/130640/130640368762202671.jpg" />
                    </a>

                    <div @Html.Raw(isTopDAdvShow ? "style='display: none;'" : "") class="small_topbanner" id="smallTopBanner">
                        <a href="/Product/ProductDetail?prd=10130002002" target="_blank">
                            <img alt="" src="http://dev.rongji365.com/Storage/Banner/130640/130640531540667205.png" />
                        </a>
                    </div>
                    <a href="javascript:;" onclick="app.SiteTopBannerAd()">
                        @if (isTopDAdvShow)
                        {
                            <span class="index_topbanner_fold" id="btnBannerShop">收起<s></s></span>
                        }
                        else
                        {
                            <span class="index_topbanner_fold index_topbanner_unfold" id="btnBannerShop">展开<s></s></span>
                        }
                    </a>
                </div>
            </div>
            <div id="topWidgets">
                <h1 id="siteLogo"><a href="/">返回蓉记鲜鲜鲜首页</a></h1>
                <div id="topSearchBox">
                    <span class="searchBox">
                        <input type="text" id="txtKeywords"
                               onkeydown="KevinShop.Common.SearchKeywordEnter(event);"
                               placeholder="搜索">
                        <button type="submit" onclick="KevinShop.Common.SearchKeyword();">GO</button>
                    </span>
                    <p id="hotSearch">
                        @{
                            var keywords = new List<string>
                                (){
                            "手工大馍",
                            "水果",
                            "乾面",
                            "菜籽油",
                            "梨",
                            "腊肉",
                            };
                            foreach (var keyword in keywords)
                            {
                                <a href="/Product/ProductList?keyword=@keyword">@keyword</a>
                            }

                        }
                    </p>
                </div>
                <dl id="hotLine">
                    <dt>全国客服热线: 400－8804-365</dt>
                    <dd>
                        <a href="~/MyAccount/Profile" id="myRongji"><i></i>我的蓉记</a>
                        <a href="~/MyAccount/OrderList?orderType=0" id="myOrders"><i></i>我的订单</a>
                    </dd>
                </dl>
            </div>
            <nav id="global-navi">
                <ul>
                    <li id="shoppingCart" class="shoppingCartEmpty">
                        <div id="triggerCartPrompt"></div>
                        <span>
                            <p id="shoppingCartMsg"></p>
                        </span>
                        <a href="/Purchase/ShoppingCart" id="goCheckOut">去结算</a>
                        <div id="shoppingCartPrompt">
                            <div class="nogoods">购物车中还没有商品，赶紧选购吧！</div>
                            <div class="goodsList"></div>
                            <div class="goodsCheckout"></div>
                        </div>
                    </li>
                    <li id="yjxp" class="gna"><a href="~/Product/ProductList?sid=2">应季鲜品</a></li>
                    <li id="qqg" class="gna"><a href="~/Product/ProductList?sid=41">网上回坊</a></li>
                    <li id="qytc" class="gna"><a href="~/Product/ProductList?sid=3">区域特产</a></li>
                    <li id="sljp" class="gna"><a href="~/Product/ProductList?sid=9">送礼佳品</a></li>
                    <li id="ssxx" class="gna"><a href="~/Product/ProductList?sid=6">时尚休闲</a></li>
                    <li id="pzpw" class="gna"><a href="~/Product/ProductList?sid=7">品质品位</a></li>
                    <li id="xpp" class="gna"><a href="~/Product/ProductList?sid=8">茶饮良品</a></li>
                    <li id="jkys" class="gna"><a href="~/Product/ProductList?gid=1&sid=7">觉悟生活</a></li>
                    <li id="xzx" class="gna"><a href="#">鲜资讯</a></li>
                </ul>
            </nav>
        </div>
    </header>
    <!-- Header End -->
    <div id="mainContent">
        <div class="wrapper-1200">
            <div class="all-category-bar">
                <dl>
                    <dt><a href="~/Product/ProductList">所有商品分类</a></dt>
                </dl>
            </div>
            @Html.Action("SiteMapInfoPartial", "Home")
            @RenderBody()
        </div>
    </div>
    <!-- Footer Start -->
    <footer id="pageFooter">
        <div id="ourPromise"></div>
        <div class="footerInner">
            <div class="wrapper-1200">
                <div class="rongjiQrCode"></div>
                <div class="footerLine">
                    <div class="site_docs">
                        <dl>
                            <dt>新手教程</dt>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=6&number=1">如何注册</a></dd>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=6&number=2">购物流程</a></dd>
                        </dl>
                        <dl>
                            <dt>会员等级</dt>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=2&number=1">会员制度</a></dd>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=2&number=2">积分兑礼</a></dd>
                        </dl>
                        <dl>
                            <dt>支付方式</dt>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=5&number=1">支付宝支付</a></dd>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=5&number=2">余额支付</a></dd>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=5&number=3">鲜享卡支付</a></dd>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=5&number=4">货到付款</a></dd>
                        </dl>
                        <dl>
                            <dt>配送方式</dt>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=4&number=2">自提服务</a></dd>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=4&number=3">物流配送</a></dd>
                        </dl>
                        <dl>
                            <dt>常见问题解答</dt>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=201&number=1">常见问题</a></dd>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=201&number=2">大客户服务</a></dd>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=201&number=3">礼品券使用须知</a></dd>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=201&number=4">投诉建议</a></dd>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=201&number=5">预售商品</a></dd>
                            <dd><a href="~/Content/ContentInfo?contentCategoryId=201&number=6">品鲜达人卡</a></dd>
                        </dl>
                    </div>
                    <div class="online_kf">
                        <p class="hot-line-400">
                            <span>400-8804-365</span>
                            <i class="fa fa-phone"></i>蓉记鲜鲜鲜全国统一服务热线
                            <em>周一至周五：09:00-18:00</em>
                        </p>
                    </div>
                </div>
                <div class="footer_link">
                    友情链接:
                    <a href="http://www.it-hsmedia.com/" target="_blank">恒沙传媒</a>
                    <a href="http://www.yxzychina.com/" target="_blank">印象庄园</a>
                    <a href="http://www.cdkhyy.com/" target="_blank">康华药业</a>
                    <a href="http://www.yoka.com/" target="_blank">YOKA时尚网</a>
                    <a href="http://www.ileehoo.com/" target="_blank">轻奢网</a>
                    <a href="http://www.secoo.com/" target="_blank">SECOO寺库</a>
                    <a href="http://fashion.qq.com/" target="_blank">腾讯时尚</a>
                    <a href="http://www.dianping.com/xian" target="_blank">大众点评</a>
                    <a href="http://xa.nuomi.com/" target="_blank">百度糯米</a>
                    <a href="http://weibo.com/" target="_blank">新浪微博</a>
                </div>
                <div class="copyRight">
                    <p>陕ICP备10008260号-4 &copy; 2014 西安恒沙电子商务有限公司 蓉记鲜鲜鲜 保留所有权利</p>
                </div>
            </div>
        </div>
    </footer>
    <!-- Footer End -->
    <!-- Start Javascript Common-->
    <script src="~/Themes/RongJi/Style/plugins/jquery.min.js"></script>
    <script src="~/Themes/RongJi/Style/plugins/sweet-alert/sweet-alert.min.js"></script>
    <script>
        //阻止jQuery.query 将 字符串转换成 数字
        jQuery.query = { numbers: false };
    </script>

    <script src="~/Utility/pages/pg_common.js" charset="gb2312"></script>


    @*<script src="~/Utility/jquery.validate.js"></script>
                        <script src="~/Utility/jquery.validate.extend.js"></script>
                <script src="~/Utility/jquery.cookie.js"></script>
                    <script src="~/Utility/pages/jquery.query-2.1.7.js"></script>
            <script src="~/Themes/RongJi/Style/plugins/fancybox-2.1.5/jquery.fancybox.pack.js"></script>
                        <script src="~/Themes/RongJi/Style/plugins/bootstrap/twitter-bootstrap-v2/js/bootstrap-modal.js"></script>
        <script src="~/Utility/pages/pg_global.js" charset="gb2312"></script>
        <script src="~/Themes/RongJi/Style/base/js/all.js"></script>
    *@

    @Scripts.Render("~/bundles/rongji/js")

    <!-- End Javascript Common-->
    @RenderSection("footer", required: false)

    <script type="text/javascript">
        $(function () {
            KevinShop.Common.ShoppingCart.RefreshTotalQty();
            var keyword = $.query.get('keyword');
            if (keyword != "" && keyword != true) {
                $("#txtKeywords").val(keyword);
            }
        });
        window.onbeforeunload || (window.onbeforeunload = function () {
            KevinShop.Common.Loading.show();
        });

    </script>
    <!--Static Code Start-->
    <script type="text/javascript" src="http://js.tongji.linezing.com/3547905/tongji.js"></script>
    <script type="text/javascript">
        var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
        document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fd2c430d3acdc174f29f6feef73ea35fa' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <!-- Piwik -->
    <script type="text/javascript">
        var _paq = _paq || [];
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function () {
            var u = "//analytics.it-hsmedia.com/";
            _paq.push(['setTrackerUrl', u + 'piwik.php']);
            _paq.push(['setSiteId', 2]);
            var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
            g.type = 'text/javascript'; g.async = true; g.defer = true; g.src = u + 'piwik.js'; s.parentNode.insertBefore(g, s);
        })();
    </script>
    <noscript><p><img src="//analytics.it-hsmedia.com/piwik.php?idsite=2" style="border:0;" alt="" /></p></noscript>
    <!-- End Piwik Code -->
    <!--Static Code End-->
</body>
<!-- InstanceEnd -->
</html>